package com.basics.loan.web.boss.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.basics.loan.util.base.BaseController;

@Controller
public class IndexController extends BaseController{

	
	/**
	 * 进入首页
	 */
	@RequestMapping(value = "/index", method = RequestMethod.GET)
	public String postIndex() {
		return "index";
	}
	
	/**
     * 跳转到欢迎页
     * @return
     */
    @RequestMapping("/home")
    public String toHomePage() {
        return "home";
    }
    
    /**
     * 跳转到权限不足页面
     * @return
     */
    @RequestMapping("/unauthorized")
    public String toUnauthorizedPage() {
        return "error/unauthorized";
    }
}
